package websocket;

import java.io.File;
import java.util.List;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.java_websocket.WebSocket;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

/**
 * 消息发送
 * @author huanghaiyun
 * @createTime 2016-2-17下午01:52:37
 * @param <T>
 */
public class MsgContainer{
	private static final MsgContainer INSTANCE=new MsgContainer();
	private MsgContainer() {
		// TODO Auto-generated constructor stub
	}
	public static MsgContainer getInstance(){
		return INSTANCE;
	}
	/**
	 * 对外的调用方法  用来发送数据
	 * @param msg
	 */
	public void send(NotifyMsg msg){
		Object obj=PCContainer.getInstance().getProcessClass(msg);
		((MsgProcess) obj).process(msg);
	}
}
